import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/global/index.css'
import API from './api/index'
import NavBar from '@/components/common/navbar/index'
import {Tag,Image as VanImage,Button,Swipe,SwipeItem,Lazyload,Badge,SidebarItem,Sidebar,Collapse,CollapseItem,
Tab,Tabs,Card,Field,Form,Icon,SwipeCell,Stepper,Cell,CellGroup,Checkbox,CheckboxGroup,AddressList,AddressEdit,
SubmitBar,Popup,Grid,GridItem} from "vant";
const app = createApp(App)
app.component(NavBar.name,NavBar)
app.config.globalProperties.$API=API
app.use(Button).use(Swipe).use(SwipeItem).use(Lazyload).use(Badge).use(SidebarItem).use(Sidebar).use(Tag).
use(Collapse).use(CollapseItem).use(Tab).use(Tabs).use(Card).use(VanImage).use(Field).use(Form).use(Icon).
use(Stepper).use(SwipeCell).use(Cell).use(CellGroup).use(Checkbox).use(CheckboxGroup).use(AddressEdit).use(AddressList).
use(SubmitBar).use(Popup).use(Grid).use(GridItem).
use(store).use(router).mount('#app')
